package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class Order_ProductBean implements Serializable, IJsonParser{

	/**
	 * "order_product_list": [
        {
          "product_count": 2,
          "product_image": "http://imgs.ykdllmyr.com/fxs/2015/7/20/d5yrKawDq7zX9MH89Sb2kN.jpeg",
          "product_price": 139.2,
          "product_id": 102,
          "product_name": "美素佳儿营养品"
        },
        {
          "product_count": 3,
          "product_image": "http://imgs.ykdllmyr.com/fxs/2015/7/20/C5FZsQLqfMtupfwna8PPJb.jpeg",
          "product_price": 150.39,
          "product_id": 103,
          "product_name": "雅培(Abbott) 亲体 金装喜康力幼儿配方奶粉"
        }
      ],
	 */
	private static final long serialVersionUID = -394695719467445266L;
	private int product_count;
	private String product_image;
	private String product_price;
	private int product_id;
	private String product_name;
	public int getProduct_count() {
		return product_count;
	}
	public String getProduct_image() {
		return product_image;
	}
	public String getProduct_price() {
		return product_price;
	}
	public int getProduct_id() {
		return product_id;
	}
	public String getProduct_name() {
		return product_name;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, Order_ProductBean.class);
		}
		return null;
	}

}
